package tictactoe.ui;

import javax.swing.*;
import java.awt.GridLayout;
//a 3 x 3 grid of Icon JButtons representing the grid
public class TTTButtonPanel extends JPanel {
	
	
	private JButton[][] cells;
	
	public TTTButtonPanel(){
		setLayout(new GridLayout(3,3));
		cells = new JButton[3][3];
		for(int i=0; i < 3; i++)
			for(int k=0; k < 3; k++){
				cells[i][k] = new JButton("" + tictactoe.Board.BLANK);
				add(cells[i][k]);
			}
	}

}
